cmd.toCity();
cmd.acceptMission("日常任务列表","月牙山初阶任务");
cmd.jumpMap("新月古镇");
cmd.acceptMission("","讨伐月牙山");
cmd.finishMission("讨伐月牙山");
cmd.acceptMission("天玄剑客","同伴");//  此处有问题...
cmd.finishMission("同伴");
cmd.acceptMission("天玄剑客","饿狼围攻");
cmd.killMonster([{name:"妖狼", count:12}]);
cmd.finishMission("饿狼围攻");
cmd.acceptMission("天玄剑客","路途凶险");
cmd.finishMission("路途凶险");
cmd.acceptMission("天玄剑客","狼人的伏击");
cmd.acceptMission("狼人","击败狼人");
cmd.finishMission("击败狼人");
cmd.finishMission("狼人的伏击");
cmd.acceptMission("天玄剑客","魔鹰山");
cmd.finishMission("魔鹰山");
cmd.acceptMission("天玄剑客","猎杀魔鹰");
cmd.killMonster([{name:"魔鹰", count:20}]);
cmd.finishMission("猎杀魔鹰");
cmd.acceptMission("天玄剑客","探索");
cmd.finishMission("探索");
cmd.acceptMission("神秘商人","魔鹰羽毛");
cmd.killMonster([{name:"魔鹰", count:20}]);
cmd.finishMission("魔鹰羽毛"); //卡在这里
cmd.acceptMission("女兵尸体","翼兽的袭击");
cmd.killMonster([{name:"巨大的翼兽", count:1}]);
cmd.finishMission("翼兽的袭击");
cmd.acceptMission("天玄剑客","翼兽");
cmd.acceptMission("天玄剑客","骷髅的包围");
cmd.killMonster([{name:"骷髅精", count:20}]);
cmd.finishMission("骷髅的包围");
cmd.acceptMission("天玄剑客","骷髅精");
cmd.killMonster([{name:"骷髅精", count:20}]);
cmd.finishMission("骷髅精");
cmd.acceptMission("骷髅王","骷髅王");
cmd.killMonster([{name:"骷髅王", count:1}]);
cmd.finishMission("骷髅王");
cmd.acceptMission("天玄剑客","完成月牙山初级阶段任务");

cmd.finishMission("月牙山初阶任务"); //优化  传入NPC 名字
cmd.acceptMission("天玄剑客","月牙山");
cmd.jumpMap("月牙山");
cmd.finishMission("月牙山");
cmd.acceptMission("天玄剑客","可靠的援军");
cmd.finishMission("可靠的援军");
cmd.acceptMission("月狼宗宗主","是敌是友")
cmd.finishMission("是敌是友");
cmd.acceptMission("天玄剑客","误会");
cmd.finishMission("误会");
cmd.acceptMission("天玄剑客","同盟");
cmd.finishMission("同盟");
cmd.acceptMission("月狼宗宗主","骷髅兵");
cmd.killMonster([{name:"骷髅兵", count:20}]);
cmd.finishMission("骷髅兵");
cmd.acceptMission("月狼宗宗主","继续战斗");
cmd.finishMission("继续战斗");
cmd.acceptMission("万兽宗宗主","鹰身人");
cmd.killMonster([{name:"鹰身人", count:15}]);
cmd.finishMission("鹰身人");
cmd.acceptMission("万兽宗宗主","月狼出现");
cmd.finishMission("月狼出现");
cmd.acceptMission("月狼宗宗主","月狼族的委托");
cmd.killMonster([{name:"月狼", count:20}]);
cmd.finishMission("月狼族的委托");
cmd.acceptMission("月狼族女","月之石的秘密");

cmd.killMonster([{name:"月狼", count:20}]);
cmd.finishMission("月之石的秘密");
cmd.acceptMission("妖尊者","妖尊者的阴谋");
cmd.finishMission("妖尊者的阴谋");
cmd.acceptMission("妖尊者","月之石");
cmd.finishMission("月之石");
cmd.acceptMission("妖尊者","狂暴的鹰身人");
cmd.killMonster([{name:"狂暴的鹰身人", count:12}]);
cmd.finishMission("狂暴的鹰身人");
cmd.acceptMission("妖尊者","援助");
cmd.finishMission("援助");

cmd.repairEquip()   

cmd.sellRquip(2); 

cmd.learnSkill("人物技能训练师", "修真","水疗术", 8);
cmd.learnSkill("人物技能训练师", "侠客","纯阳无极功", 9);
cmd.learnSkill("人物技能训练师", "法师","魔法回路", 9);

cmd.jumpMap("月牙山脚");
cmd.jumpMap("月牙山");


// // var count = 0;
// // do{
// //    cmd.abandonMission("破敌");  
// //    cmd.acceptMission("天玄剑客","破敌");
// //    cmd.npcBattle("妖尊者","消灭妖尊者");
// //    count++;
// //    if(count == 50 || count == 100 || count == 150){
// //        //修装备
// //    }
// // }while(cmd.player().getLevel() < 43 && count < 199);


cmd.pollMail();
cmd.repairEquip()   

cmd.sellRquip(2); 

// //提交任务

cmd.jumpMap("月牙山脚");
cmd.jumpMap("月牙山");
var count = 0;
do{
   cmd.abandonMission("破敌");  
   cmd.acceptMission("天玄剑客","破敌");
   cmd.npcBattle("妖尊者","消灭妖尊者");
   count++;
}while(cmd.player().getLevel() < 34 && count < 50);

cmd.finishMission("破敌");
cmd.acceptMission("天玄剑客","道路");
cmd.jumpMap("五蛇山");
cmd.finishMission("道路");
cmd.acceptMission("天玄剑客","妖营");
cmd.finishMission("妖营");
cmd.acceptMission("天玄剑客","小恶魔");
cmd.killMonster([{name:"小恶魔", count:8}]);
cmd.finishMission("小恶魔");
cmd.acceptMission("灵蛇守卫","妖蛇守卫");
cmd.finishMission("妖蛇守卫");
cmd.acceptMission("天玄剑客","试炼场");
cmd.finishMission("试炼场");
cmd.acceptMission("天玄剑客","突袭");
cmd.killMonster([{name:"灵蛇守卫", count:1}]);
cmd.finishMission("突袭");
cmd.acceptMission("天玄剑客","蛇妖箭手");
cmd.killMonster([{name:"蛇妖箭手", count:20}]);
cmd.finishMission("蛇妖箭手");
cmd.acceptMission("天玄剑客","双蛇守卫");
cmd.finishMission("双蛇守卫");
cmd.acceptMission("妖蛇守卫","双蛇");
cmd.killMonster([{name:"灵蛇守卫", count:2}]);
cmd.finishMission("双蛇");
cmd.acceptMission("天玄剑客","灵蛇");
cmd.finishMission("灵蛇");
cmd.acceptMission("天玄剑客","灵草");
cmd.killMonster([{name:"蛇女", count:15}]);
cmd.finishMission("灵草");
cmd.acceptMission("天玄剑客","五蛇现身");
cmd.finishMission("五蛇现身");
cmd.acceptMission("灵蛇","五灵蛇");
cmd.killMonster([{name:"灵蛇", count:1}]);
cmd.finishMission("五灵蛇");
cmd.acceptMission("天玄剑客","完成月牙山中级任务");
cmd.acceptMission("天玄剑客","妖王之地");
cmd.jumpMap("月牙山巅");
cmd.finishMission("妖王之地");
cmd.acceptMission("天玄剑客","大战前夕");
cmd.finishMission("大战前夕");
cmd.acceptMission("蛮妖王","打败妖将");
cmd.killMonster([{name:"妖将", count:12}]);
cmd.finishMission("打败妖将");
cmd.acceptMission("蛮妖王","打败蛮妖王");
cmd.killMonster([{name:"蛮妖王", count:1}]);
cmd.finishMission("打败蛮妖王");
cmd.acceptMission("天玄剑客","妖王的先锋部队");
cmd.killMonster([{name:"蛮兵", count:10}]);
cmd.finishMission("妖王的先锋部队");
cmd.acceptMission("天玄剑客","妖帅");
cmd.acceptMission("妖帅","溃败");
cmd.killMonster([{name:"蛮妖王", count:1}]);
cmd.finishMission("溃败");
cmd.finishMission("妖帅");
cmd.acceptMission("天玄剑客","前进");
cmd.finishMission("前进");
cmd.acceptMission("天玄剑客","消灭徘徊的巫毒师");
cmd.killMonster([{name:"巫毒师", count:12}]);
cmd.finishMission("消灭徘徊的巫毒师");
cmd.acceptMission("妖王","妖王现身");
cmd.killMonster([{name:"妖将", count:10}]);
cmd.finishMission("妖王现身");
cmd.acceptMission("妖王","妖王的围截");
cmd.killMonster([{name:"妖帅", count:2}]);
cmd.finishMission("妖王的围截");
cmd.acceptMission("天玄剑客","天玄出现");
cmd.finishMission("天玄出现");
cmd.acceptMission("天玄剑客","大军出动");
cmd.finishMission("大军出动");
cmd.acceptMission("天玄剑客","集合");
cmd.finishMission("集合");
cmd.acceptMission("月狼宗剑手","友军的援助");
cmd.killMonster([{name:"蛮兵", count:10}]);
cmd.finishMission("友军的援助");
cmd.acceptMission("月狼宗刀手","友军的援助");
cmd.killMonster([{name:"妖帅", count:2}]);
cmd.finishMission("友军的援助");
cmd.acceptMission("天玄剑客","最后的战斗");
cmd.finishMission("最后的战斗");
cmd.acceptMission("妖王","合力之战");
cmd.killMonster([{name:"妖王", count:1}]);
cmd.jumpMap("月牙山脚");
cmd.jumpMap("月牙山");
cmd.jumpMap("五蛇山");
cmd.jumpMap("月牙山巅");

for(var i = 0; i<150; i++){
cmd.killMonster([{name:"妖王", count:1}]);
}
cmd.finishMission("合力之战");
cmd.acceptMission("天玄剑客","完成月牙山高级阶段");
cmd.alert("完毕1");